//
//  LAOMIEmptyErrorViewProtocal.h
//  LAOMIKit
//
//  Created by niki on 2019/7/10.
//  Copyright © 2019年 niki. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^LAOMIEmpteyErrorBlock)(id obj);

@protocol LAOMIEmptyErrorViewProtocal <NSObject>



@optional
//必须含有刷新数据的方法
-(void)reloadData;



//为空
-(void)showEmptyViewWithImage:(UIImage*)image title:(NSString*)title detailTitle:(NSString*)detailString btnTitle:(NSString*)btnTitle onClickBlock:(LAOMIEmpteyErrorBlock)block;
-(void)showEmptyView;//展示默认空
-(void)hiddenEmptyView;

//错误页
-(void)showErrorViewWithImage:(UIImage*)image title:(NSString*)title detailTitle:(NSString*)detailString btnTitle:(NSString*)btnTitle onClickBlock:(LAOMIEmpteyErrorBlock)block;
-(void)showErrorView;//展示默认错误页
-(void)hiddenErrorView;
@end

NS_ASSUME_NONNULL_END
